|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.justhis.jibx.JibxUtil
TODO
Constructor Summary | |
JibxUtil()
Creates a new JibxUtil object. |
Method Summary | |
static void |
marshallDocument(java.lang.Object obj,
java.lang.String xslt,
int indent,
java.lang.String encoding,
java.io.OutputStream out)
marshall document by a jibx object enhanced. |
static void |
marshallDocument(java.lang.Object obj,
java.lang.String xslt,
java.io.OutputStream out)
marshall jibx object to print xml document. |
static void |
marshallDocument(java.lang.Object obj,
java.lang.String xslt,
java.lang.String fileName)
marshall jibx object to print xml document file. |
static java.lang.Object |
unmarshallDocument(java.lang.Class cs,
java.io.InputStream ins)
get jibx object from inputstream |
static java.lang.Object |
unmarshallDocument(java.lang.Class cs,
java.lang.String fileName)
get object from xml file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JibxUtil()
Method Detail |
public static void marshallDocument(java.lang.Object obj, java.lang.String xslt, int indent, java.lang.String encoding, java.io.OutputStream out) throws java.io.FileNotFoundException, org.jibx.runtime.JiBXException
obj
- a jibx objectxslt
- xslt file nameindent
- tidy document indentencoding
- document's encodingout
- stream of print document
java.io.FileNotFoundException
- if file not found.
org.jibx.runtime.JiBXException
- if use jibx to mashall document.public static void marshallDocument(java.lang.Object obj, java.lang.String xslt, java.io.OutputStream out) throws java.io.FileNotFoundException, org.jibx.runtime.JiBXException
obj
- marshalled objectxslt
- xslt file nameout
- a stream of print xml doucment.
java.io.FileNotFoundException
- if file not found
org.jibx.runtime.JiBXException
- if deal with jibx object ocurr any error.public static void marshallDocument(java.lang.Object obj, java.lang.String xslt, java.lang.String fileName) throws java.io.FileNotFoundException, org.jibx.runtime.JiBXException
obj
- jibx objectxslt
- xslt file name or pathfileName
- a file printed xml document
java.io.FileNotFoundException
- if can't find any file
org.jibx.runtime.JiBXException
- if any jibx error occurspublic static java.lang.Object unmarshallDocument(java.lang.Class cs, java.io.InputStream ins) throws org.jibx.runtime.JiBXException
cs
- class nameins
- input stream
org.jibx.runtime.JiBXException
- if any jibx error occurspublic static java.lang.Object unmarshallDocument(java.lang.Class cs, java.lang.String fileName) throws org.jibx.runtime.JiBXException
cs
- class namefileName
- xml file name
org.jibx.runtime.JiBXException
- if any jibx exception occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |